<template>
  <div class="rankingComics">
    <div class="list">
      <div class="imgbox">
        <img :src="'https://images.weserv.nl/?url=' + img" />
      </div>
      <div class="content">
        <div class="title">{{ title }}</div>
        <div class="text">
          <div class="author">
            <span>{{ itemAuthor }}</span>
          </div>
          <div class="label">
            {{ name }}
          </div>
          <div class="update">
            更新至<span>{{ last_short_title }}话</span>
          </div>
        </div>
      </div>
      <!-- <div class="icon"></div> -->
    </div>
  </div>
</template>

<script>
export default {
  name: "RankingComics",
  props: ["img", "title", "itemAuthor", "name", "last_short_title"],
};
</script>

<style lang="less" scoped>
.rankingComics {
  margin-top: 10px;
  .list {
    width: 100%;
    height: 139px;
    // border: 1px solid black;
    margin-top: 15px;
    display: flex;
    position: relative;
    .imgbox {
      width: 102px;
      height: 136px;
      margin-left: 40px;
      img {
        width: 100%;
      }
    }
    .content {
      width: 191px;
      height: 136px;
      //   background: blue;
      margin-left: 8px;
      .title {
        font-size: 18px;
        color: #1c1d1f;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .text {
        position: absolute;
        bottom: 3px;
        .author {
          font-size: 12px;
          color: #90959b;
          //   margin-top: 50px;
          span {
            margin-left: 5px;
          }
          span:nth-child(1) {
            margin-left: 0px;
          }
        }
        .label {
          font-size: 12px;
          color: #90959b;
          margin-top: 7px;
        }
        .update {
          font-size: 12px;
          color: #90959b;
          margin-top: 7px;
        }
      }
    }
  }
  .icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url();
    background-size: cover;
    position: absolute;
    bottom: 0;
    right: 13px;
  }
}
</style>